#include<iostream>
using namespace  std;



class Person {
  friend class goodGay;
  public:
    string m_sittingRoom;
    Person(string sittingRoom, string bedRoom) {
      this->m_sittingRoom = sittingRoom;
      this->m_bedRoom = bedRoom;
    }
  private:
    string m_bedRoom;
  
};

class goodGay{
  public:
    Person p1 = Person("客厅", "卧室");
    void visit() {
      cout << p1.m_sittingRoom <<endl;
      cout << p1.m_bedRoom <<endl;  // 在Person类的最上方加friend class goodGay;
    }
};


void test01() {
  goodGay gay1;
}

int main() {
  return 0;
}
